package xx.excel.controller.respVo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class UserDeptVo {
    @ExcelProperty("用户ID")
    @ColumnWidth(20)
    private String userId;

    @ExcelProperty("用户名")
    @ColumnWidth(20)
    private String userName;

    @ExcelProperty("年龄")
    @ColumnWidth(20)
    private Integer age;

    @ExcelProperty("地址")
    @ColumnWidth(20)
    private String address;

    @ExcelProperty("创建时间")
    @ColumnWidth(40)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ExcelProperty("部门")
    @ColumnWidth(20)
    private String deptName;
}
